import React from "react";
import ReactDom from "react-dom";
// import Login from './LAR/Login/Login'

import "bootstrap";
import "bootstrap/dist/css/bootstrap.min.css";
import { BrowserRouter, Route } from "react-router-dom";
import "antd/dist/antd.css";
import { Provider } from "react-redux";

import store from './redux/store'
import Login from "./containers/Login/Login";
import Register from "./containers/Register/Register";
import Cashier from "./containers/Cashier/Cashier";
import JoinStore from "./containers/JoinStore/JoinStore";
import axios from "axios";
import Back from "./containers/Back/Back";

axios.defaults.headers.common["xxx-authorization"] = null;
axios.defaults.headers.common['Authorization'] = 'bearer '

ReactDom.render(
  <React.StrictMode>
    <Provider store={store}>
      <BrowserRouter>
        <Route exact path="/" component={Login}></Route>
        <Route path="/login" component={Login}></Route>
        <Route path="/register" component={Register}></Route>
        <Route path="/cashier" component={Cashier}></Route>
        <Route path="/back" component={Back}></Route>
        <Route path="/join" component={JoinStore}></Route>
      </BrowserRouter>
    </Provider>
  </React.StrictMode>,
  document.getElementById("root")
);
